import instance from './axiosInstance.js'

// login
exports.login = data => instance.post('/login', data)
exports.signOut = () => instance.get('/login/signout')

// user
exports.getUserInfo = () => instance.get('/user/info')

// friend
exports.recommendList = () => instance.get('/friend/recommend')
exports.followUser = data => instance.post('/friend/follow', data)

// Upload
exports.getQiniuToken = () => instance.get('/upload/qiniu_token')

// Topic
exports.getTopicDetail = () => instance.get('/topic/detail')
exports.friendTopicList = () => instance.get('/topic/friend/list')

exports.addTopic = data => instance.post('/topic/add', data)
exports.addDiscuss = data => instance.post('/topic/discuss/add', data)
exports.topicLike = data => instance.post('/topic/thumbs_up', data)
